import request from '../utils/request'

// 获取管理员接口
export function getAdmin (data) {
  return request('/VueHandler/AdminHandler?action=show', 'get', data)
}
// 添加管理员接口
export function addAdmin (data) {
  return request('/VueHandler/AdminLoginAndRegHandler?action=add', 'post', data)
}
// 删除管理员
export function delAdmin (tokenId) {
  return request('/VueHandler/AdminHandler?action=delete', 'get', {
    tokenId: tokenId
  })
}
// 修改接口
export function editAdmin (data) {
  return request('/VueHandler/AdminHandler?action=update', 'post', data)
}
